
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<?php echo $this->Session_gpp->flash(); ?>
	 	</div>
	</div>
  	<div class="row-fluid">
		<div class="span12">
			<ul class="breadcrumb">
		      	<?php 
					echo '<li class="active">'.$this->Html->link('Applications',array('controller'=>'applications','action'=>'index')).'</span>/</span></li>';
				?>
			</ul>
		</div>
	</div>

	<div class="row-fluid">
		<div class="span12">
			<div class="navbar"/>
				<div class="navbar-inner_gpp">
					<div class="container-fluid">
						<div class="nav-collapse">
							<p><a href="/GestParamPhp/applications/add" class="btn btn-primary btn-small" ><i class="icon-plus-sign icon-white"></i><?php echo __(' Application')?></a></p>
        				</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<div class="row-fluid">
		<div class="span12">
			<div class="page-header" style="margin-top: 10px">
				<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
					<thead>
						<tr>
							<th width="1px"><?php echo __('id'); //echo $this->Paginator->sort('id');?></th>
							<th align="left"><?php echo __('name'); //echo $this->Paginator->sort('name');  ?></th>
							<th align="left"><?php echo __('description'); //echo $this->Paginator->sort('description');?></th>
							<th align="center"><?php echo __('Modification'); //echo $this->Paginator->sort('datmod','Modification');?></th>
							<th align="center"><?php echo __('Nb Vs');?></th>
							<th align="center"><?php echo __('Nb Fct');?></th>
							<th align="center" width="1px"/>
						</tr>
					</thead>

					<tbody>				
						<?php
						foreach ($applications as $application): ?>
							<tr>
								<td><?php echo h($application['Application']['id']); ?>&nbsp;</td>
								<td align="left"><?php echo $this->Html->link(h($application['Application']['name']),array('controller'=>'applications','action'=>'view',$application['Application']['id'])); ?>&nbsp;</td>
								<td align="left"><?php echo h($application['Application']['description']); ?>&nbsp;</td>
								<td align="center"><?php echo $this->Datefr->show($application['Application']['datmod'],false); ?>&nbsp;</td>
								<td align="center"><?php echo $this->Html->link($nbversions[$application['Application']['id']]['count'],array('controller'=>'versions','action'=>'VersionsOfApplication',$application['Application']['id'])); ?>&nbsp;</td>
								<td align="center"><?php echo $this->Html->link('nb',array('controller'=>'fonctions','action'=>'FonctionOfApplication',$application['Application']['id'])); ?>&nbsp;</td>
								<td class="center">
									<p>
										<?php echo $this->Moninput->delete(
													__('Delete'),
													$application['Application']['id'], 
													'Applications',
													__('Are you sure you want to delete # '.$application['Application']['id'].' '.$application['Application']['name'].'?')
												); ?>
									</p>
								</td>
							</tr>
						<?php endforeach; ?>
					</tbody>
				</table>
			</div>
		</div>
	</div>

</div><!--/.fluid-container-->